//package com.cloud.annex.controller;
//
//import com.cloud.common.domain.Result;
//import com.cloud.common.utils.BaiduMapUtils;
//import io.swagger.v3.oas.annotations.Operation;
//import io.swagger.v3.oas.annotations.tags.Tag;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@Tag(name = "地图管理")
//@RestController
//@RequestMapping("/annexMap")
//public class MapController {
//
//    /**
//     * x1,y1代表的是需要拉取的地图范围的左小角经纬度,x2,y2代表右上角经纬度,
//     * z代表需要拉取到的层级,19就是从6-19层都拉取下来
//     */
//    @Operation(summary = "地图瓦片下载")
//    @GetMapping("/download")
//    public Result download(Double x1, Double y1, Double x2, Double y2, Integer zoom, String path, String map) {
//        for (int i = 6; i <= zoom; i++) {
//            BaiduMapUtils baiduMap = new BaiduMapUtils(i, x1, y1, x2, y2, i, path, map);
//            baiduMap.run();
//        }
//        return Result.success("地图瓦片拉取完成");
//    }
//
//}
